import smtplib
import sys

#if len(sys.argv) < 2:   
#	print 'Wrong parameter.'  
#	sys.exit()

##caseName = sys.argv[1]
##level = sys.argv[2]

#print caseName
#print level


FROMADDR = "mape2emonitoring_SVC_BE@nokia.com"
#if level == 'ResultNotFound':
#	TOADDRS  = ['ext-duan.ken@nokia.com']
#else:
#	TOADDRS  = ['ext-duan.ken@nokia.com']
TOADDRS  = ['ext-duan.ken@nokia.com','I_EXT_SS_CHINA_SDO_QA@nokia.com','susan.3.zhang@staff.ovi.com.cn','ext-zhang.2.li@nokia.com']	
	
SUBJECT  = "China_Product_SW_Update_Schedule_MP Modify Notification" 

msg = ("From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n"
       % (FROMADDR, ";".join(TOADDRS), SUBJECT) )
msg += "Dear fellas\n"
msg += "The China_Product_SW_Update_Schedule_MP.xlsx is updated, please check it\n"
msg += "\n\n\n\nBRs\n"
msg += "QA Automation\n"

server = smtplib.SMTP('smtp.nokia.com', 25)
server.set_debuglevel(1)
server.ehlo()
##server.starttls()
##server.login(LOGIN, PASSWORD)
server.sendmail(FROMADDR, TOADDRS, msg)
server.quit()
